Present
constructor(animated: Boolean = true, presentationStyle: <Error class: unknown class> = UIModalPresentationAutomatic, transitionStyle: <Error class: unknown class> = UIModalTransitionStyleCoverVertical, present: () -> <Error class: unknown class>, completion: () -> Unit? = null)
Parameters
animated
Specifies whether transition should be animated
presentationStyle
The UIModalPresentationStyle to present the viewcontroller in. Defaults to UIModalPresentationAutomatic
transitionStyle
The UIModalTransitionStyle to transition to. Defaults to UIModalTransitionStyleCoverVertical
present
Function to create the UIViewController to present
completion
Optional function to call when presentation has completed